﻿using System;
using System.Linq;

using SY.WebSite.BLL;

namespace SY.WebSite.Web.Reward
{
    public partial class Detail : BasePage
    {
        public Entity.Reward CurrentReward;

        protected void Page_Load(object sender, EventArgs e)
        {
            CurrentReward = BizReward.All().FirstOrDefault(l => l.Id.ToString() == Request.QueryString["id"]);
            if (CurrentReward == null)
            {
                RedirectTo404Page("悬赏不存在");
                return;
            }
            CurrentReward.Description = Tools.StringUtil.HtmlDecode(CurrentReward.Description);
        }
    }
}